]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Retain native logo dimensions
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Mon, 16 Mar 2020 10:05:53 +0000 (18:05 +0800)
committerFlorian Müllner <florian.muellner@gmail.com>
Sun, 22 Mar 2020 15:06:36 +0000 (15:06 +0000)
So that the same logo may be used during boot and keeps its
dimensions on the login screen, appearing to never move.

Related to: https://bugs.launchpad.net/bugs/1867133

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1101

js/gdm/loginDialog.js

index b60d971a259730898c9b1b45375ad6abe7cd1ea4..b19f1c6628a4880753dd3f596d54cc3189d8c403 100644 (file)
@@ -35,7 +35,6 @@ const UserWidget = imports.ui.userWidget;
 const _FADE_ANIMATION_TIME = 250;
 const _SCROLL_ANIMATION_TIME = 500;
 const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
-const _LOGO_ICON_HEIGHT = 48;
 
 var UserListItem = GObject.registerClass({
     Signals: { 'activate': {} },
@@ -813,7 +812,7 @@ var LoginDialog = GObject.registerClass({
         if (this._logoFile && this._logoBin.resource_scale > 0) {
             let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
             this._logoBin.add_child(this._textureCache.load_file_async(this._logoFile,
-                                                                       -1, _LOGO_ICON_HEIGHT,
+                                                                       -1, -1,
                                                                        scaleFactor,
                                                                        this._logoBin.resource_scale));
         }